package com.beigai.imessage.message.handler;

import com.beigai.imessage.message.dto.MessageDTO;
import com.beigai.imessage.message.dto.MessageUnit;
import org.springframework.stereotype.Service;

/**
 * Created by xxl on 2017/5/17.
 */
@Service
public class StrMessageHandler implements IMessageHandler {
    @Override
    public MessageDTO getMessage(MessageUnit messageUnit) {
        MessageDTO messageDTO = new MessageDTO();
        messageDTO.setMessage(messageUnit.getMessage());
        messageDTO.setMessageSortNum(messageUnit.getMessageSortNum());
        return messageDTO;
    }
}
